<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" id="minwidth">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name="robots" content="index, follow" />
        <meta name="keywords" content="bet, bet24h" />
        <meta name="description" content="Bet24h! - the dynamic portal engine and content management system" />
        <meta name="generator" content="Bet24h! 1.0 - Bet Portal" />
        <title>Bet24h - Administration</title>
        <!-- 
        <link href="/joomla/administrator/templates/khepri/favicon.ico" rel="shortcut icon" type="image/x-icon" />
         -->
        <?php echo $this->headLink()->prependStylesheet($this->themeUrl('/css/system.css'))
                ->appendStylesheet($this->themeUrl('/css/reset.css'))
                ->appendStylesheet($this->themeUrl('/css/general.css'))
                ->appendStylesheet($this->themeUrl('/css/menu.css'))
                ->appendStylesheet($this->themeUrl('/css/rounded.css'))
                ->appendStylesheet($this->themeUrl('/css/icon.css'))
                ->appendStylesheet($this->themeUrl('/css/webstyle-update.css'))
                ->appendStylesheet($this->themeUrl('/css/admin.css')) ?>
        <?php echo $this->headScript()->prependFile($this->themeUrl('/js/jquery-1.4.2.min.js'))
                  ->prependFile($this->themeUrl('/js/bet24h-admin.js'))?>
		<script type="text/javascript">
		function ajaxfilemanager(field_name, url, type, win) {
			var ajaxfilemanagerurl = "http://localhost/bet24h/themes/bet24h/js/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php";
			switch (type) {
				case "image":
					break;
				case "media":
					break;
				case "flash": 
					break;
				case "file":
					break;
				default:
					return false;
			}
            tinyMCE.activeEditor.windowManager.open({
                url: "http://localhost/bet24h/themes/bet24h/js/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php",
                width: 782,
                height: 440,
                inline : "yes",
                close_previous : "no"
            },{
                window : win,
                input : field_name
            });
            
			var fileBrowserWindow = new Array();
			fileBrowserWindow["file"] = ajaxfilemanagerurl;
			fileBrowserWindow["title"] = "Ajax File Manager";
			fileBrowserWindow["width"] = "782";
			fileBrowserWindow["height"] = "440";
			fileBrowserWindow["close_previous"] = "no";
			tinyMCE.openWindow(fileBrowserWindow, {
			  window : win,
			  input : field_name,
			  resizable : "yes",
			  inline : "yes",
			  editor_id : tinyMCE.getWindowArg("editor_id")
			});
			
			return false;
		}
		</script>
    </head>
    <body id="minwidth-body">
        <div id="border-top" class="h_green">
            <div>
                <div>
                    <span class="version">Version 1.0</span>
                    <span class="title">Bet24h</span>
                </div>
            </div>
        </div>
        <div id="header-box">
            <div id="module-status">
                <span class="preview"><a href="<{$base_url}>" target="_blank">Preview</a></span>
                <span class="logout"><a href="<?php echo $this->url(array('controller' => 'auth', 'action' => 'logout')); ?>">Logout</a></span>
            </div>
            <div id="module-menu">
            	<?php
            		echo $this->navigation()->menu()->setPartial('/layouts/partials/menu.phtml');
            	?>
                <?php //echo $this->partial('/layouts/partials/menu.phtml', array('menuData' => $this->menuData));?>
            </div>
            <div class="clr">
            </div>
        </div>
        <div id="content-box">
            <div class="border">
                <div class="padding">
                    <?php echo $this->layout()->content ?>
                </div>
            </div>
        </div>
        <div id="border-bottom">
            <div>
                <div>
                </div>
            </div>
        </div>
        <div id="footer">
            <p class="copyright">
                <a href="#" target="_blank">Bet24h</a>
            </p>
        </div>

		<script type="text/javascript">
		    $(document).ready(function(){
		        $("#menu li").hover(function(){
		            $(this).addClass("hover");
		            $("ul", this).fadeIn("fast");
		        }, function(){
		            $(this).removeClass("hover");
		        });
		        $("#menu li ul li").css("width", "130px");
		        if (document.all) {
		            alert("oh yeah");
		            $("#menu li").hoverClass("hover");
		            $("#menu li ul li").css("width", "120px");
		        }
		    });
		    
		    $.fn.hoverClass = function(c){
		        return this.each(function(){
		            $(this).hover(function(){
		                $(this).addClass(c);
		            }, function(){
		                $(this).removeClass(c);
		            });
		        });
		    };
		    
		</script>
    </body>
</html>


